package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * @author LiangTianQi
 * @describe
 * @date 2020/11/18 18:13
 */
public interface MemberService {
    void check(Map map);

    void add(Member member);

    List<Integer> getCountByMonth(List<String> months);


    /**
     * 删除
     * @param id
     * @return
     */
    void delete(Integer id);

    /**
     * 更新
     * @param member
     * @return
     */
    void update(Member member);

    /**
     * 通过id查询
     *
     * @param id
     * @return
     */
    Member get(Integer id);

    /**
     * 通过条件查询
     * @param queryPageBean
     * @return
     */
    PageResult getByConditions(QueryPageBean queryPageBean);

}
